package com.songyl;

import java.util.Scanner;

public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!  from syl");
        System.out.println("git");
        for (int i = 0; i < 3; i++) {
            System.out.println("repeat "+(i+1)+" time...");
        }
        System.out.print("input a word:");
        Scanner scanner = new Scanner(System.in);
        //Scanner hasNext return boolean
        if (scanner.hasNext()) {
            String input =scanner.next();
            System.out.print("you enter is:");
            System.out.println(input);
        }
    }
}
